/**
 * 
 */
package com.pmsco.pms.business.dto;

import com.pmsco.pms.core.domain.PmsMenu;
import com.pmsco.pms.core.domain.PmsRole;

/**
 * @author Long Tran
 *
 */
public class PmsMenuRequestDTO extends AbstractRequestDTO {
	private PmsRole pmsRole;
	private String menuName;
	private PmsMenu pmsMenu;
	private Long parentId;
	private Long oldParentId;
	private Long orderId;
	private String[] enableMenuIds;

	public PmsMenuRequestDTO() {
		setPage(1);
		setRows(10);
		setSidx("");
		setSord("");
		setSearchField("");
		setSearchString("");
		setSearchOper("");
		setPmsRole(null);
		setPmsMenu(null);
		setMenuName("");
		setParentId(null);
		setOldParentId(null);
		setOrderId(null);
		setEnableMenuIds(new String[]{""});
	}

	/**
	 * @return the pmsRole
	 */
	public PmsRole getPmsRole() {
		return pmsRole;
	}

	/**
	 * @param pmsRole the pmsRole to set
	 */
	public void setPmsRole(PmsRole pmsRole) {
		this.pmsRole = pmsRole;
	}

	/**
	 * @return the menuName
	 */
	public String getMenuName() {
		return menuName;
	}

	/**
	 * @param menuName the menuName to set
	 */
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	/**
	 * @return the pmsMenu
	 */
	public PmsMenu getPmsMenu() {
		return pmsMenu;
	}

	/**
	 * @param pmsMenu the pmsMenu to set
	 */
	public void setPmsMenu(PmsMenu pmsMenu) {
		this.pmsMenu = pmsMenu;
	}

	/**
	 * @return the parentId
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * @param parentId the parentId to set
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * @return the oldParentId
	 */
	public Long getOldParentId() {
		return oldParentId;
	}

	/**
	 * @param oldParentId the oldParentId to set
	 */
	public void setOldParentId(Long oldParentId) {
		this.oldParentId = oldParentId;
	}

	/**
	 * @return the orderId
	 */
	public Long getOrderId() {
		return orderId;
	}

	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	/**
	 * @return the enableMenuIds
	 */
	public String[] getEnableMenuIds() {
		return enableMenuIds;
	}

	/**
	 * @param enableMenuIds the enableMenuIds to set
	 */
	public void setEnableMenuIds(String[] enableMenuIds) {
		if(enableMenuIds == null)
			enableMenuIds = new String[]{""};
		this.enableMenuIds = enableMenuIds;
	}
	
}
